.class public Lcn/sharesdk/framework/m;
.super Landroid/os/HandlerThread;

# interfaces
.implements Landroid/os/Handler$Callback;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcn/sharesdk/framework/m$a;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/os/Handler;

.field private c:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field private d:Lcn/sharesdk/framework/m$a;

.field private e:Ljava/lang/String;

.field private f:Ljava/lang/String;

.field private g:Z

.field private h:Z

.field private i:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/framework/Platform;",
            ">;"
        }
    .end annotation
.end field

.field private j:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Integer;",
            "Lcn/sharesdk/framework/CustomPlatform;",
            ">;"
        }
    .end annotation
.end field

.field private k:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Integer;",
            "Lcn/sharesdk/framework/Service;",
            ">;"
        }
    .end annotation
.end field

.field private l:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private m:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Thread-"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const/16 v1, -0x5704

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    sget-object v0, Lcn/sharesdk/framework/m$a;->a:Lcn/sharesdk/framework/m$a;

    iput-object v0, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-static {}, Lcn/sharesdk/framework/utils/UIHandler;->prepare()V

    iget-object v0, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->a(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcn/sharesdk/framework/m;->start()V

    new-instance v0, Landroid/os/Handler;

    invoke-virtual {p0}, Lcn/sharesdk/framework/m;->getLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1, p0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V

    iput-object v0, p0, Lcn/sharesdk/framework/m;->b:Landroid/os/Handler;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/framework/m;->l:Ljava/util/HashMap;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    return-void
.end method

.method private c(Ljava/lang/String;)V
    .registers 5

    iget-object v2, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    monitor-enter v2

    :try_start_3
    iget-object v0, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    invoke-direct {p0}, Lcn/sharesdk/framework/m;->h()V

    iput-object p1, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    iget-object v0, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    const-string v1, "ShareSDK"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_43

    iget-object v0, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    const-string v1, "ShareSDK"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    if-eqz v0, :cond_43

    iget-object v1, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    if-nez v1, :cond_31

    const-string v1, "AppKey"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    iput-object v1, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    :cond_31
    const-string v1, "UseVersion"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_45

    const-string v1, "UseVersion"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    :goto_41
    iput-object v0, p0, Lcn/sharesdk/framework/m;->f:Ljava/lang/String;

    :cond_43
    monitor-exit v2

    return-void

    :cond_45
    const-string v0, "latest"

    goto :goto_41

    :catchall_48
    move-exception v0

    monitor-exit v2
    :try_end_4a
    .catchall {:try_start_3 .. :try_end_4a} :catchall_48

    throw v0
.end method

.method private h()V
    .registers 10

    const/4 v8, 0x1

    :try_start_1
    invoke-static {}, Lorg/xmlpull/v1/XmlPullParserFactory;->newInstance()Lorg/xmlpull/v1/XmlPullParserFactory;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lorg/xmlpull/v1/XmlPullParserFactory;->setNamespaceAware(Z)V

    invoke-virtual {v0}, Lorg/xmlpull/v1/XmlPullParserFactory;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;
    :try_end_c
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_c} :catch_66

    move-result-object v2

    :try_start_d
    iget-object v0, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v0

    const-string v1, "ShareSDK.xml"

    invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
    :try_end_18
    .catch Ljava/lang/Throwable; {:try_start_d .. :try_end_18} :catch_46

    move-result-object v0

    move-object v1, v0

    :goto_1a
    :try_start_1a
    const-string v0, "utf-8"

    invoke-interface {v2, v1, v0}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v0

    :goto_23
    if-eq v0, v8, :cond_62

    const/4 v3, 0x2

    if-ne v0, v3, :cond_5d

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v3

    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getAttributeCount()I

    move-result v5

    const/4 v0, 0x0

    :goto_36
    if-ge v0, v5, :cond_58

    invoke-interface {v2, v0}, Lorg/xmlpull/v1/XmlPullParser;->getAttributeName(I)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v2, v0}, Lorg/xmlpull/v1/XmlPullParser;->getAttributeValue(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v0, v0, 0x1

    goto :goto_36

    :catch_46
    move-exception v0

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    iget-object v0, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v0

    const-string v1, "ShareSDK.conf"

    invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    move-object v1, v0

    goto :goto_1a

    :cond_58
    iget-object v0, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    invoke-virtual {v0, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_5d
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v0

    goto :goto_23

    :cond_62
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V
    :try_end_65
    .catch Ljava/lang/Throwable; {:try_start_1a .. :try_end_65} :catch_66

    :goto_65
    return-void

    :catch_66
    move-exception v0

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    goto :goto_65
.end method

.method private i()V
    .registers 3

    iget-object v1, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    monitor-enter v1

    :try_start_3
    invoke-direct {p0}, Lcn/sharesdk/framework/m;->j()V

    invoke-direct {p0}, Lcn/sharesdk/framework/m;->k()V

    sget-object v0, Lcn/sharesdk/framework/m$a;->c:Lcn/sharesdk/framework/m$a;

    iput-object v0, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    iget-object v0, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    monitor-exit v1

    return-void

    :catchall_14
    move-exception v0

    monitor-exit v1
    :try_end_16
    .catchall {:try_start_3 .. :try_end_16} :catchall_14

    throw v0
.end method

.method private j()V
    .registers 3

    iget-object v0, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    iget-object v1, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/k;->a(Landroid/content/Context;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_17

    iget-object v1, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :cond_17
    return-void
.end method

.method private k()V
    .registers 6

    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    invoke-virtual {v0, p0}, Lcn/sharesdk/framework/k;->a(Lcn/sharesdk/framework/m;)V

    iget-object v1, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    iget-object v2, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    iget-object v3, p0, Lcn/sharesdk/framework/m;->b:Landroid/os/Handler;

    iget-boolean v4, p0, Lcn/sharesdk/framework/m;->g:Z

    invoke-virtual {v0, v1, v2, v3, v4}, Lcn/sharesdk/framework/k;->a(Landroid/content/Context;Ljava/lang/String;Landroid/os/Handler;Z)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lcn/sharesdk/framework/Platform;
    .registers 8

    const/4 v0, 0x0

    if-nez p1, :cond_4

    :cond_3
    :goto_3
    return-object v0

    :cond_4
    invoke-virtual {p0}, Lcn/sharesdk/framework/m;->b()[Lcn/sharesdk/framework/Platform;

    move-result-object v3

    if-eqz v3, :cond_3

    array-length v4, v3

    const/4 v1, 0x0

    move v2, v1

    :goto_d
    if-ge v2, v4, :cond_3

    aget-object v1, v3, v2

    invoke-virtual {v1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1d

    move-object v0, v1

    goto :goto_3

    :cond_1d
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_d
.end method

.method public a(ILjava/lang/String;)Ljava/lang/String;
    .registers 5

    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    iget-object v1, p0, Lcn/sharesdk/framework/m;->l:Ljava/util/HashMap;

    invoke-virtual {v0, p1, p2, v1}, Lcn/sharesdk/framework/k;->a(ILjava/lang/String;Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .registers 5

    iget-object v1, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_3
    iget-object v0, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    if-nez v0, :cond_10

    const/4 v0, 0x0

    monitor-exit v1

    :goto_f
    return-object v0

    :cond_10
    invoke-virtual {v0, p2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    monitor-exit v1

    goto :goto_f

    :catchall_18
    move-exception v0

    monitor-exit v1
    :try_end_1a
    .catchall {:try_start_3 .. :try_end_1a} :catchall_18

    throw v0
.end method

.method public a(Ljava/lang/String;ZILjava/lang/String;)Ljava/lang/String;
    .registers 12

    sget-object v0, Lcn/sharesdk/framework/m$a;->c:Lcn/sharesdk/framework/m$a;

    iget-object v1, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    if-eq v0, v1, :cond_7

    :goto_6
    return-object p1

    :cond_7
    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    iget-object v1, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    iget-object v2, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    move-object v3, p1

    move v4, p2

    move v5, p3

    move-object v6, p4

    invoke-virtual/range {v0 .. v6}, Lcn/sharesdk/framework/k;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_6
.end method

.method public a()V
    .registers 4

    iget-object v1, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_3
    iget-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_d
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_26

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/Service;

    invoke-virtual {v0}, Lcn/sharesdk/framework/Service;->onUnbind()V

    goto :goto_d

    :catchall_23
    move-exception v0

    monitor-exit v1
    :try_end_25
    .catchall {:try_start_3 .. :try_end_25} :catchall_23

    throw v0

    :cond_26
    :try_start_26
    iget-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    monitor-exit v1
    :try_end_2c
    .catchall {:try_start_26 .. :try_end_2c} :catchall_23

    iget-object v1, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_2f
    iget-object v0, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    monitor-exit v1
    :try_end_35
    .catchall {:try_start_2f .. :try_end_35} :catchall_40

    :try_start_35
    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    iget-object v1, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/k;->b(Landroid/content/Context;)V
    :try_end_3f
    .catch Ljava/lang/Throwable; {:try_start_35 .. :try_end_3f} :catch_43

    :goto_3f
    return-void

    :catchall_40
    move-exception v0

    :try_start_41
    monitor-exit v1
    :try_end_42
    .catchall {:try_start_41 .. :try_end_42} :catchall_40

    throw v0

    :catch_43
    move-exception v0

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    invoke-virtual {p0}, Lcn/sharesdk/framework/m;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Looper;->quit()V

    sget-object v0, Lcn/sharesdk/framework/m$a;->a:Lcn/sharesdk/framework/m$a;

    iput-object v0, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    goto :goto_3f
.end method

.method public a(I)V
    .registers 2

    sput p1, Lcn/sharesdk/framework/a/g;->a:I

    return-void
.end method

.method public a(ILcn/sharesdk/framework/Platform;)V
    .registers 4

    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    invoke-virtual {v0, p1, p2}, Lcn/sharesdk/framework/k;->a(ILcn/sharesdk/framework/Platform;)V

    return-void
.end method

.method public a(Ljava/lang/Class;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class",
            "<+",
            "Lcn/sharesdk/framework/CustomPlatform;",
            ">;)V"
        }
    .end annotation

    iget-object v1, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_3
    iget-object v0, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_15

    monitor-exit v1
    :try_end_14
    .catchall {:try_start_3 .. :try_end_14} :catchall_3e

    :goto_14
    return-void

    :cond_15
    const/4 v0, 0x1

    :try_start_16
    new-array v0, v0, [Ljava/lang/Class;

    const/4 v2, 0x0

    const-class v3, Landroid/content/Context;

    aput-object v3, v0, v2

    invoke-virtual {p1, v0}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;

    move-result-object v0

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-object v4, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    aput-object v4, v2, v3

    invoke-virtual {v0, v2}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/CustomPlatform;

    iget-object v2, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_3c
    .catch Ljava/lang/Throwable; {:try_start_16 .. :try_end_3c} :catch_41
    .catchall {:try_start_16 .. :try_end_3c} :catchall_3e

    :goto_3c
    :try_start_3c
    monitor-exit v1

    goto :goto_14

    :catchall_3e
    move-exception v0

    monitor-exit v1
    :try_end_40
    .catchall {:try_start_3c .. :try_end_40} :catchall_3e

    throw v0

    :catch_41
    move-exception v0

    :try_start_42
    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I
    :try_end_45
    .catchall {:try_start_42 .. :try_end_45} :catchall_3e

    goto :goto_3c
.end method

.method public a(Ljava/lang/String;I)V
    .registers 4

    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    invoke-virtual {v0, p1, p2}, Lcn/sharesdk/framework/k;->a(Ljava/lang/String;I)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/util/HashMap;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    iget-object v2, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    monitor-enter v2

    :try_start_3
    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    invoke-virtual {p2}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_10
    :goto_10
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_33

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_10

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_10

    :catchall_30
    move-exception v0

    monitor-exit v2
    :try_end_32
    .catchall {:try_start_3 .. :try_end_32} :catchall_30

    throw v0

    :cond_33
    :try_start_33
    iget-object v0, p0, Lcn/sharesdk/framework/m;->c:Ljava/util/HashMap;

    invoke-virtual {v0, p1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    monitor-exit v2
    :try_end_39
    .catchall {:try_start_33 .. :try_end_39} :catchall_30

    return-void
.end method

.method public a(Ljava/lang/String;Z)V
    .registers 5

    sget-object v0, Lcn/sharesdk/framework/m$a;->b:Lcn/sharesdk/framework/m$a;

    iput-object v0, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    iput-boolean p2, p0, Lcn/sharesdk/framework/m;->g:Z

    invoke-direct {p0, p1}, Lcn/sharesdk/framework/m;->c(Ljava/lang/String;)V

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    const/4 v1, 0x1

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcn/sharesdk/framework/m;->b:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method public a(Z)V
    .registers 2

    iput-boolean p1, p0, Lcn/sharesdk/framework/m;->h:Z

    return-void
.end method

.method public a(Ljava/util/HashMap;)Z
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)Z"
        }
    .end annotation

    const/4 v1, 0x1

    const/4 v0, 0x0

    sget-object v2, Lcn/sharesdk/framework/m$a;->c:Lcn/sharesdk/framework/m$a;

    iget-object v3, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    if-eq v2, v3, :cond_16

    invoke-static {}, Lcn/sharesdk/framework/ShareSDK;->isDebug()Z

    move-result v1

    if-eqz v1, :cond_15

    sget-object v1, Ljava/lang/System;->err:Ljava/io/PrintStream;

    const-string v2, "Statistics module unopened"

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    :cond_15
    :goto_15
    return v0

    :cond_16
    iget-object v2, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-static {v2}, Lcn/sharesdk/framework/b/a;->a(Landroid/content/Context;)Lcn/sharesdk/framework/b/a;

    move-result-object v2

    :try_start_1c
    iget-object v3, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcn/sharesdk/framework/b/a;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    iput-boolean v4, p0, Lcn/sharesdk/framework/m;->m:Z

    new-instance v4, Lcn/sharesdk/framework/utils/d;

    invoke-direct {v4}, Lcn/sharesdk/framework/utils/d;-><init>()V

    invoke-virtual {v4, v3}, Lcn/sharesdk/framework/utils/d;->a(Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v4

    const-string v5, "error"

    invoke-virtual {v4, v5}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4d

    invoke-static {}, Lcn/sharesdk/framework/ShareSDK;->isDebug()Z

    move-result v1

    if-eqz v1, :cond_15

    sget-object v1, Ljava/lang/System;->err:Ljava/io/PrintStream;

    invoke-virtual {v1, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
    :try_end_41
    .catch Ljava/lang/Throwable; {:try_start_1c .. :try_end_41} :catch_42

    goto :goto_15

    :catch_42
    move-exception v1

    invoke-static {}, Lcn/sharesdk/framework/ShareSDK;->isDebug()Z

    move-result v2

    if-eqz v2, :cond_15

    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_15

    :cond_4d
    :try_start_4d
    const-string v3, "res"

    invoke-virtual {v4, v3}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_63

    invoke-static {}, Lcn/sharesdk/framework/ShareSDK;->isDebug()Z

    move-result v1

    if-eqz v1, :cond_15

    sget-object v1, Ljava/lang/System;->err:Ljava/io/PrintStream;

    const-string v2, "SNS configuration is empty"

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    goto :goto_15

    :cond_63
    const-string v3, "res"

    invoke-virtual {v4, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "\n"

    const-string v5, ""

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    invoke-virtual {v2, v4, v3}, Lcn/sharesdk/framework/b/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    const-string v3, "snsconf returns ===> %s"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v2, v4, v5

    invoke-static {v3, v4}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Object;[Ljava/lang/Object;)I

    new-instance v3, Lcn/sharesdk/framework/utils/d;

    invoke-direct {v3}, Lcn/sharesdk/framework/utils/d;-><init>()V

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/utils/d;->a(Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
    :try_end_96
    .catch Ljava/lang/Throwable; {:try_start_4d .. :try_end_96} :catch_42

    move v0, v1

    goto/16 :goto_15
.end method

.method public b(Ljava/lang/String;)I
    .registers 3

    invoke-virtual {p0, p1}, Lcn/sharesdk/framework/m;->a(Ljava/lang/String;)Lcn/sharesdk/framework/Platform;

    move-result-object v0

    if-nez v0, :cond_8

    const/4 v0, 0x0

    :goto_7
    return v0

    :cond_8
    invoke-virtual {v0}, Lcn/sharesdk/framework/Platform;->getPlatformId()I

    move-result v0

    goto :goto_7
.end method

.method public b(I)V
    .registers 2

    sput p1, Lcn/sharesdk/framework/a/g;->b:I

    return-void
.end method

.method public b(Ljava/lang/Class;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class",
            "<+",
            "Lcn/sharesdk/framework/CustomPlatform;",
            ">;)V"
        }
    .end annotation

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v0

    iget-object v1, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_7
    iget-object v2, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    monitor-exit v1

    return-void

    :catchall_12
    move-exception v0

    monitor-exit v1
    :try_end_14
    .catchall {:try_start_7 .. :try_end_14} :catchall_12

    throw v0
.end method

.method public b(Ljava/util/HashMap;)Z
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)Z"
        }
    .end annotation

    iget-object v0, p0, Lcn/sharesdk/framework/m;->l:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    iget-object v1, p0, Lcn/sharesdk/framework/m;->l:Ljava/util/HashMap;

    invoke-virtual {v0, p1, v1}, Lcn/sharesdk/framework/k;->a(Ljava/util/HashMap;Ljava/util/HashMap;)Z

    move-result v0

    return v0
.end method

.method public b()[Lcn/sharesdk/framework/Platform;
    .registers 9

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    iget-object v3, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    monitor-enter v3

    :try_start_9
    iget-object v0, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    sget-object v6, Lcn/sharesdk/framework/m$a;->a:Lcn/sharesdk/framework/m$a;

    if-ne v0, v6, :cond_12

    monitor-exit v3

    move-object v0, v1

    :goto_11
    return-object v0

    :cond_12
    iget-object v0, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    sget-object v6, Lcn/sharesdk/framework/m$a;->b:Lcn/sharesdk/framework/m$a;
    :try_end_16
    .catchall {:try_start_9 .. :try_end_16} :catchall_46

    if-ne v0, v6, :cond_1d

    :try_start_18
    iget-object v0, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/lang/Object;->wait()V
    :try_end_1d
    .catch Ljava/lang/Throwable; {:try_start_18 .. :try_end_1d} :catch_41
    .catchall {:try_start_18 .. :try_end_1d} :catchall_46

    :cond_1d
    :goto_1d
    :try_start_1d
    monitor-exit v3
    :try_end_1e
    .catchall {:try_start_1d .. :try_end_1e} :catchall_46

    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcn/sharesdk/framework/m;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_29
    :goto_29
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_49

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/Platform;

    if-eqz v0, :cond_29

    invoke-virtual {v0}, Lcn/sharesdk/framework/Platform;->a()Z

    move-result v7

    if-eqz v7, :cond_29

    invoke-virtual {v6, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_29

    :catch_41
    move-exception v0

    :try_start_42
    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    goto :goto_1d

    :catchall_46
    move-exception v0

    monitor-exit v3
    :try_end_48
    .catchall {:try_start_42 .. :try_end_48} :catchall_46

    throw v0

    :cond_49
    iget-object v0, p0, Lcn/sharesdk/framework/m;->j:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_53
    :goto_53
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_71

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/Platform;

    if-eqz v0, :cond_53

    invoke-virtual {v0}, Lcn/sharesdk/framework/Platform;->a()Z

    move-result v7

    if-eqz v7, :cond_53

    invoke-virtual {v6, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_53

    :cond_71
    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gtz v0, :cond_79

    move-object v0, v1

    goto :goto_11

    :cond_79
    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v0

    new-array v3, v0, [Lcn/sharesdk/framework/Platform;

    move v1, v2

    :goto_80
    array-length v0, v3

    if-ge v1, v0, :cond_8f

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/Platform;

    aput-object v0, v3, v1

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_80

    :cond_8f
    const-string v0, "sort list use time: %s"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    sub-long v4, v6, v4

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    aput-object v4, v1, v2

    invoke-static {v0, v1}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Object;[Ljava/lang/Object;)I

    move-object v0, v3

    goto/16 :goto_11
.end method

.method public c(I)Ljava/lang/String;
    .registers 8

    const/4 v0, 0x0

    invoke-virtual {p0}, Lcn/sharesdk/framework/m;->b()[Lcn/sharesdk/framework/Platform;

    move-result-object v2

    if-nez v2, :cond_8

    :cond_7
    :goto_7
    return-object v0

    :cond_8
    array-length v3, v2

    const/4 v1, 0x0

    :goto_a
    if-ge v1, v3, :cond_7

    aget-object v4, v2, v1

    if-nez v4, :cond_13

    :cond_10
    add-int/lit8 v1, v1, 0x1

    goto :goto_a

    :cond_13
    invoke-virtual {v4}, Lcn/sharesdk/framework/Platform;->getPlatformId()I

    move-result v5

    if-ne v5, p1, :cond_10

    invoke-virtual {v4}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v0

    goto :goto_7
.end method

.method public c(Ljava/lang/Class;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class",
            "<+",
            "Lcn/sharesdk/framework/Service;",
            ">;)V"
        }
    .end annotation

    iget-object v1, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_3
    iget-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_15

    monitor-exit v1
    :try_end_14
    .catchall {:try_start_3 .. :try_end_14} :catchall_37

    :goto_14
    return-void

    :cond_15
    :try_start_15
    invoke-virtual {p1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/Service;

    iget-object v2, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v2, p0, Lcn/sharesdk/framework/m;->a:Landroid/content/Context;

    invoke-virtual {v0, v2}, Lcn/sharesdk/framework/Service;->a(Landroid/content/Context;)V

    iget-object v2, p0, Lcn/sharesdk/framework/m;->e:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcn/sharesdk/framework/Service;->a(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcn/sharesdk/framework/Service;->onBind()V
    :try_end_35
    .catch Ljava/lang/Throwable; {:try_start_15 .. :try_end_35} :catch_3a
    .catchall {:try_start_15 .. :try_end_35} :catchall_37

    :goto_35
    :try_start_35
    monitor-exit v1

    goto :goto_14

    :catchall_37
    move-exception v0

    monitor-exit v1
    :try_end_39
    .catchall {:try_start_35 .. :try_end_39} :catchall_37

    throw v0

    :catch_3a
    move-exception v0

    :try_start_3b
    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I
    :try_end_3e
    .catchall {:try_start_3b .. :try_end_3e} :catchall_37

    goto :goto_35
.end method

.method public c()Z
    .registers 2

    iget-boolean v0, p0, Lcn/sharesdk/framework/m;->h:Z

    return v0
.end method

.method public d(Ljava/lang/Class;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class",
            "<+",
            "Lcn/sharesdk/framework/Service;",
            ">;)V"
        }
    .end annotation

    iget-object v1, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_3
    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v2

    iget-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2b

    iget-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/Service;

    invoke-virtual {v0}, Lcn/sharesdk/framework/Service;->onUnbind()V

    iget-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_2b
    monitor-exit v1

    return-void

    :catchall_2d
    move-exception v0

    monitor-exit v1
    :try_end_2f
    .catchall {:try_start_3 .. :try_end_2f} :catchall_2d

    throw v0
.end method

.method public d()Z
    .registers 2

    iget-boolean v0, p0, Lcn/sharesdk/framework/m;->g:Z

    return v0
.end method

.method public e(Ljava/lang/Class;)Lcn/sharesdk/framework/Service;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Lcn/sharesdk/framework/Service;",
            ">(",
            "Ljava/lang/Class",
            "<TT;>;)TT;"
        }
    .end annotation

    iget-object v1, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    monitor-enter v1

    :try_start_3
    iget-object v0, p0, Lcn/sharesdk/framework/m;->k:Ljava/util/HashMap;

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/framework/Service;
    :try_end_17
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_17} :catch_19
    .catchall {:try_start_3 .. :try_end_17} :catchall_42

    :try_start_17
    monitor-exit v1

    :goto_18
    return-object v0

    :catch_19
    move-exception v0

    invoke-static {}, Lcn/sharesdk/framework/ShareSDK;->isDebug()Z

    move-result v2

    if-eqz v2, :cond_3c

    sget-object v2, Ljava/lang/System;->err:Ljava/io/PrintStream;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " has not registered"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    :cond_3c
    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    const/4 v0, 0x0

    monitor-exit v1

    goto :goto_18

    :catchall_42
    move-exception v0

    monitor-exit v1
    :try_end_44
    .catchall {:try_start_17 .. :try_end_44} :catchall_42

    throw v0
.end method

.method public e()Z
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/framework/m;->l:Ljava/util/HashMap;

    if-eqz v0, :cond_e

    iget-object v0, p0, Lcn/sharesdk/framework/m;->l:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->size()I

    move-result v0

    if-lez v0, :cond_e

    const/4 v0, 0x1

    :goto_d
    return v0

    :cond_e
    iget-boolean v0, p0, Lcn/sharesdk/framework/m;->m:Z

    goto :goto_d
.end method

.method public f()Ljava/lang/String;
    .registers 2

    :try_start_0
    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    invoke-virtual {v0}, Lcn/sharesdk/framework/k;->a()Ljava/lang/String;
    :try_end_8
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_8} :catch_a

    move-result-object v0

    :goto_9
    return-object v0

    :catch_a
    move-exception v0

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    const-string v0, "2.3.7"

    goto :goto_9
.end method

.method public g()I
    .registers 2

    :try_start_0
    new-instance v0, Lcn/sharesdk/framework/k;

    invoke-direct {v0}, Lcn/sharesdk/framework/k;-><init>()V

    invoke-virtual {v0}, Lcn/sharesdk/framework/k;->b()I
    :try_end_8
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_8} :catch_a

    move-result v0

    :goto_9
    return v0

    :catch_a
    move-exception v0

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    const/16 v0, 0x20

    goto :goto_9
.end method

.method public handleMessage(Landroid/os/Message;)Z
    .registers 3

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_18

    :goto_5
    const/4 v0, 0x0

    return v0

    :pswitch_7
    invoke-direct {p0}, Lcn/sharesdk/framework/m;->i()V

    goto :goto_5

    :pswitch_b
    invoke-virtual {p0}, Lcn/sharesdk/framework/m;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Looper;->quit()V

    sget-object v0, Lcn/sharesdk/framework/m$a;->a:Lcn/sharesdk/framework/m$a;

    iput-object v0, p0, Lcn/sharesdk/framework/m;->d:Lcn/sharesdk/framework/m$a;

    goto :goto_5

    nop

    :pswitch_data_18
    .packed-switch 0x1
        :pswitch_7
        :pswitch_b
    .end packed-switch
.end method
